package zhangxinhua.lanqiaoyun.sp9;

import java.util.ArrayList;
import java.util.List;

/**
 * @author zxhtom
 */
public class Solution {
    public  List<Integer> soluation = new ArrayList<>();
    public  void addSolution(StepInterface step , int[] stepArr) {
        //TODO 请你帮忙解决家庭成员如何保证仅需1名达成即可结束游戏
        int jump = step.jump(stepArr);
        if (soluation.size() == 0) {
            System.out.print(jump+"  ");
            soluation.add(jump);
        }
    }
}
